package com.wf.model;

import java.io.Serializable;

/**
 * 调用结果.
 * 
 * @author Dusk
 * 
 */

public class Result<T extends Serializable> implements Serializable {
	private static final long serialVersionUID = 2721608081790776364L;

	public static final String SUCCESS_CODE = "SUCCESS";
	public static final String FAILED_CODE = "FAILED";
	private String tuiTime;//退票申请时间
	private String returnTime;//退票成功时间

	public String getTuiTime() {
		return tuiTime;
	}

	public void setTuiTime(String tuiTime) {
		this.tuiTime = tuiTime;
	}

	public String getReturnTime() {
		return returnTime;
	}

	public void setReturnTime(String returnTime) {
		this.returnTime = returnTime;
	}

	/**
	 * 结果代码.
	 */
	private String code;

	/**
	 * 结果描述.
	 */
	private String description;
	/**
	 * 结果内容.
	 */
	private T content;

	public Result() {
		code = SUCCESS_CODE;
		description = "操作成功!";
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public T getContent() {
		return content;
	}

	public void setContent(T content) {
		this.content = content;
	}

}
